package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface DishService extends IService<Dish> {
    void saveWithFlavors(DishDto dishDto);

    void updateWithFlavor(DishDto dishDto);

    void updateStatus(int status, List<Long> ids);

    void delete(List<Long> ids);

    DishDto getWithFlavors(Long id);
}
